Fix default values for targetlocation and configlog flags.
authorKosuke Mizubayashi <miz@mizba.net>
Thu, 31 Mar 2016 00:57:01 +0000 (09:57 +0900)
committerKosuke Mizubayashi <miz@mizba.net>
Thu, 31 Mar 2016 00:57:01 +0000 (09:57 +0900)
The previous default value "" wereconsidered as TRUE in the IF
condition, Those flags took effect even if users didn't specify it.
There were no workarounds. Itprevented users to reach to the main
procedure skytraq_read_tracks.

Those should be NULL by default so that the IF condition should
be FALSE if a user wouldn't specify it.

skytraq.cc

index 3130bf24499da866d2ff2d709e40059e3b2b525e..914ecd27b95a14c07d1f22d48d9ff65ed6810a6c 100644 (file)
@@ -77,11 +77,11 @@ arglist_t skytraq_args[] = {
   },
   {
     "targetlocation", &opt_set_location, "Set location finder target location as lat,lng",
-    "", ARGTYPE_STRING, "", ""
+    NULL, ARGTYPE_STRING, "", ""
   },
   {
     "configlog", &opt_configure_logging, "Configure logging parameter as tmin:tmax:dmin:dmax",
-    "", ARGTYPE_STRING, "", ""
+    NULL, ARGTYPE_STRING, "", ""
   },
   {
     "baud", &opt_dlbaud, "Baud rate used for download",